//
//  SuperNav.m
//  HuiPinZhiJia
//
//  Created by MS on 16/8/29.
//  Copyright © 2016年 MS. All rights reserved.
//

#import "SuperNav.h"

@interface SuperNav ()

@end

@implementation SuperNav

- (void)viewDidLoad {
    [super viewDidLoad];
   
       // Do any additional setup after loading the view.
}


+(UIColor *)hexadecimalToRGB:(NSString *)hexadecimalColor {
   
    unsigned int red, green, blue;
    NSRange range;
    range.length =2;
    
    range.location =1;
    [[NSScanner scannerWithString:[hexadecimalColor substringWithRange:range]]scanHexInt:&red];
    
    range.location =3;
    [[NSScanner scannerWithString:[hexadecimalColor substringWithRange:range]]scanHexInt:&green];
    
    range.location =5;
    [[NSScanner scannerWithString:[hexadecimalColor substringWithRange:range]]scanHexInt:&blue];
    
    
    return [UIColor colorWithRed:(float)(red/255.0f)green:(float)(green/255.0f)blue:(float)(blue/255.0f) alpha:1.0f];
   
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
